package com.kwlt.smc.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.kwlt.smc.dao.SmsSendDetailDao;
import com.kwlt.smc.entity.SmsSendDetail;


/**
 * 短信详细信息管理类
 * @author wangweiheng
 *
 */
//Spring Bean的标识.
@Component
//默认将类中的所有public函数纳入事务管理.
@Transactional(readOnly = true)
public class SmsSendDetailService {
	private static Logger logger = LoggerFactory.getLogger(UserChannelService.class);
	@Autowired
	private SmsSendDetailDao smsSendDetailDao;
	public int updateSmsRpt(SmsSendDetail sendResultDetail,String dateStr) {
		return smsSendDetailDao.updateSmsRpt(sendResultDetail,dateStr);
	}

	public SmsSendDetail getSmsSendDetailByLocalMsgId(String msgId,String phoneNum,String dateStr) {
		return smsSendDetailDao.findSmsSendDetailByLocalMsgId(msgId,phoneNum,dateStr);
	}

}
